package arrayListExample;
import java.util.List;
import java.util.ArrayList;

public class ArrayListDemo {
    public static void main(String[] args)
    {
        List<String> list = new ArrayList<String>();
        list.add("张三");
        list.add("李四");
        for(var s:list)
            System.out.println(s);
    }
}
